/**
 * Create by mzq
 * Description: index
 * Date: 2024/9/18 16:53
 * Update: 2024/9/18 16:53
 */
import request from '@/utils/request.js'

/**
 * 登录
 * @param data
 * @returns {*}
 */
export const login = (data) => {
  return request({
    url: '/service-sso/public/getToken',
    method: 'post',
    data
  })
}

/**
 * 获取快速检测统计信息
 * @returns {*}
 */
export const getFastCheckInfo = (data) => {
  return request({
    url: '/service-erp/private/bigScreen/getFastCheckInfo',
    method: 'post',
    data
  })
}

/**
 * 获取用户和设备统计信息
 * @param data
 * @returns {*}
 */
export const getUserDeviceInfo = (data) =>{
  return request({
    url: '/service-erp/private/bigScreen/getUserDeviceInfo',
    method: 'post',
    data
  })
}

/**
 * 获取当前在线用户
 * @param data
 * @returns {*}
 */
export const getOnlineUser = (data) =>{
  return request({
    url: '/service-erp/private/bigScreen/getOnlineUser',
    method: 'post',
    data
  })
}

/**
 * 获取深度监测统计信息
 * @param data
 * @returns {*}
 */
export const getDeepMonitorInfo = (data) =>{
  return request({
    url: '/service-erp/private/bigScreen/getDeepMonitorInfo',
    method: 'post',
    data
  })
}

/**
 * 获取用户区域统计信息
 * @param data
 * @returns {*}
 */
export const getRegionalInfo = (data) =>{
  return request({
    url: '/service-erp/private/bigScreen/getRegionalInfo',
    method: 'post',
    data
  })
}